package com.bole.feign;

import com.bole.dto.content.DicContentTypeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface ContentTypeFeign {
    @GetMapping("/contenttype/getContentTypeInfo")
    List<DicContentTypeDto> getContentInfo();

    @PostMapping("/contenttype/saveContentTypeInfo")
    void saveContentCateInfo(@RequestBody DicContentTypeDto contentTypeDto);

    @PostMapping("/contenttype/toUpdate")
    DicContentTypeDto toUpdate(@RequestParam("id") Long id);

    @PostMapping("/contenttype/updateContentCateInfo")
     void updateContentCateInfo(@RequestBody DicContentTypeDto contentTypeDto);

    @PostMapping("/contenttype/deleteBatch")
    void deleteBatch(@RequestParam("idss") List<Long> idss);

}
